-- GENERATED SPELL FOR [Gilmorian] --


function spell0_14447(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(13579,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14447', 4332, 1)
end

function spell1_14447(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(19472,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14447', 599, 1)
end

function Sorts_14447(pUnit, Event)
local choix_sorts_14447 = math.random(0, 1)
if choix_sorts_14447 == 0 then
pUnit:RegisterEvent('spell0_14447', 1, 1)
end
if choix_sorts_14447 == 1 then
pUnit:RegisterEvent('spell1_14447', 1, 1)
end
end

function mob14447_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14447', math.random(1500, 3000), 1)
end

function mob14447_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14447_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14447_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14447, 1, 'mob14447_Action')
RegisterUnitEvent(14447, 2, 'mob14447_Leave')
RegisterUnitEvent(14447, 3, 'mob14447_Kill')
RegisterUnitEvent(14447, 4, 'mob14447_Die')
